home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / PERL / OS2 / GLOB.C < prev    next >
C/C++ Source or Header  |  1992-01-04  |  312b  |  19 lines

  1. /*
  2.  * Globbing for OS/2.  Relies on the expansion done by the library
  3.  * startup code. (dds)
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <string.h>
  8.  
  9. main(int argc, char *argv[])
  10. {
  11.   register i;
  12.  
  13.   for (i = 1; i < argc; i++)
  14.   {
  15.     fputs(IsFileSystemFAT(argv[i]) ? strlwr(argv[i]) : argv[i], stdout);
  16.     putchar(0);
  17.   }
  18. }
  19.